package com.jjtm.admin.common.dto;


import java.io.Serializable;


public class BaseCommand implements Serializable {
    private static final long serialVersionUID = 13453453L;
    /**
     * 分页参数
     */
    private Integer pageSize = 10;
    private Integer pageCurrent = 1;
    @SuppressWarnings("unused")
    private Integer pageIndex;

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageCurrent() {
        return pageCurrent;
    }

    public void setPageCurrent(Integer pageCurrent) {
        this.pageCurrent = pageCurrent;
    }

    public Integer getPageIndex() {
        return (pageCurrent - 1) * pageSize;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }
}
